home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-11-18 | 1.8 KB | 78 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="Internet\Internet Explorer\System"
- "NAME"="Advanced Options #1"
- "LANGUAGE"="VBScript"
- "VERSION"="1.53"
- "TEXT 1"="Check for Updates on microsoft.com"
- "TEXT 2"="Allow Auto-Setup of components"
- "TEXT 3"="Enable disk caching (aka "Temporary Files")"
- "DESCRIPTION 1"="Some misc. settings of Internet Explorer you might consider changing."
- "DESCRIPTION 2"=""
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"=""
-
-
- sV1="HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions\NoUpdateCheck"
- sV2="HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions\NoJITSetup"
- sV3="HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\Enable_Disk_Cache"
-
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- i=RegReadValue(sV1)
- if i<>1 then SetUIElement 1,true
-
- i=RegReadValue(sV2)
- if i<>1 then SetUIElement 2,true
-
- i=RegReadValue(sV3)
- if IsEmpty(i) or i="yes" then SetUIElement 3,true
-
-
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
-
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- Call Wrt(1,sV1)
- Call Wrt(2,sV2)
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sV3,"yes",1)
- else
- Call RegWriteValue(sV3,"no",1)
- end if
-
-
- Call Restart()
- END SUB
-
- Sub Wrt(ITM,VAL)
- b=GetUIElement(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- else
- s=RegReadValue(VAl)
- if IsEmpty(s)=false then
- Call RegDeleteValue(VAL)
- end if
- end if
- end sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-